<body>
    <form id="my-form">
        <div id="tools" class="datagrid-toolbar">
            <input type="hidden" name="type" id="type" value="0">
            <a id="subBtn" name="subOk" class="easyui-linkbutton l-btn l-btn-plain" iconcls="icon-save"
                plain="true"><span class="l-btn-left"><span
                        class="l-btn-text icon-save l-btn-icon-left">保存</span></span></a>
            <a id="closeBtn" name="backOk" class="easyui-linkbutton l-btn l-btn-plain" iconcls="icon-close"
                plain="true"><span class="l-btn-left"><span
                        class="l-btn-text icon-close l-btn-icon-left">关闭</span></span></a>
        </div>
        <p id="errorMsg" style="color:red;margin-top:5px;"></p>
        <table class="formTable">
            <tbody>
                <tr>
                    <td class="tdc1" style="width:150px;">
                        申请人：
                    </td>
                    <td colspan="3">
                        <input type="text" name="applyUserName" id="applyUserName" data-options="required:true"
                            class="easyui-validatebox texfind validatebox-text" readonly="">
                        <input type="hidden" name="applyUserId" id="applyUserId">
                        <a class="easyui-linkbutton l-btn l-btn-plain" iconcls="icon-undo" plain="true"
                            onclick="clearCheck('applyUserName,applyUserId');" id=""><span class="l-btn-left"><span
                                    class="l-btn-text icon-undo l-btn-icon-left">清除</span></span></a>
                    </td>
                </tr>
                <tr>
                    <td class="tdc1">
                        审批领导：
                    </td>
                    <td colspan="3">
                        <input type="text" name="approvalNames" id="approvalNames"
                            class="easyui-validatebox texfind validatebox-text" readonly="">
                        <input type="hidden" name="approvalIds" id="approvalIds">
                        <a class="easyui-linkbutton l-btn l-btn-plain" iconcls="icon-undo" plain="true"
                            onclick="clearCheck('approvalNames,approvalIds');" id=""><span class="l-btn-left"><span
                                    class="l-btn-text icon-undo l-btn-icon-left">清除</span></span></a>
                    </td>
                </tr>
                <tr class="htlxTr">
                    <td class="tdc1">
                        合同类型：
                    </td>
                    <td colspan="3">
                        <select name="contractTypeId" id="contractTypeId" onchange="showContractMsg(this.value)">
                            <option value="">==请选择==</option>
                            <option value="177">场地/孵化类协议</option>
                            <option value="178">服务类合同</option>
                            <option value="179">采购类合同</option>
                            <option value="180">装修类合同</option>
                            <option value="181">人事类合同</option>
                            <option value="182">财务类合同</option>
                            <option value="183">投资类合同</option>
                            <option value="184">预算外/重大事项</option>
                            <option value="185">政府合作类合同</option>
                            <option value="187">非合同类文件</option>
                        </select>
                    </td>
                </tr>

                <tr id="yuji" style="display: none;">
                    <td class="tdc1">
                        预计归还时间：
                    </td>
                    <td>
                        <input type="text" name="estimatedTime" id="estimatedTime" readonly="readonly"
                            class="easyui-validatebox Wdate validatebox-text"
                            onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})">
                    </td>
                </tr>
            </tbody>
        </table>
        <br>
        <table class="formTable" id="htlxtable" style="display:none">
            <tbody>
                <tr>
                    <td colspan="4">合同履行节点</td>
                </tr>
                <tr>
                    <td class="tdc1" style="width:150px;">
                        合同名称：
                    </td>
                    <td>
                        <input type="text" name="contractName" id="contractName"
                            class="easyui-validatebox validatebox-text">
                    </td>
                    <td class="tdc1">
                        合同金额：
                    </td>
                    <td>
                        <input type="text" id="contractMoney" precision="2"
                            class="easyui-numberbox numberbox-f validatebox-text" numberboxname="contractMoney"><input
                            type="hidden" name="contractMoney" value="">
                    </td>
                </tr>
                <tr>
                    <td class="tdc1">
                        甲方：
                    </td>
                    <td>
                        <input type="text" name="partyA" id="partyA" class="easyui-validatebox validatebox-text">
                    </td>
                    <td class="tdc1">
                        乙方：
                    </td>
                    <td>
                        <input type="text" name="partyB" id="partyB" class="easyui-validatebox validatebox-text">
                    </td>
                </tr>
                <tr>
                    <td class="tdc1">
                        起始时间：
                    </td>
                    <td>
                        <input type="text" name="contractStartDate" id="contractStartDate" readonly="readonly"
                            class="easyui-validatebox Wdate validatebox-text"
                            onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})">
                    </td>
                    <td class="tdc1">
                        结束时间：
                    </td>
                    <td>
                        <input type="text" name="contractEndDate" id="contractEndDate" readonly="readonly"
                            class="easyui-validatebox Wdate validatebox-text"
                            onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})">
                    </td>
                </tr>
                <tr>
                    <td class="tdc1">
                        结算方式：
                    </td>
                    <td colspan="3">
                        <select name="hxsxjdType" id="hxsxjdType" onchange="changeNext(this.value)">
                            <option value="">请选择</option>
                            <option value="1">一次性结算</option>
                            <option value="2">分阶段完成</option>
                        </select>
                    </td>
                </tr>
                <tr id="tr1" style="display:none">
                    <td class="tdc1">
                        阶段类型：
                    </td>
                    <td colspan="3">
                        <select name="jdType" id="jdType" onchange="changeSecond(this.value)">
                            <option value="">请选择</option>
                            <option value="1">协议内容固定类合同</option>
                            <option value="2">协议内容灵活约定类合同</option>
                        </select>
                    </td>
                </tr>
                <tr id="tr2" style="display:none">
                    <td class="tdc1">固定合同支付方式：</td>
                    <td colspan="3">
                        <input type="radio" name="payType" style="margin-left:15px;width:15px" value="4">一次性付清
                        <input type="text" name="payDate" id="payDate" class="easyui-validatebox Wdate validatebox-text"
                            onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" style="width:140px;">
                        <input type="radio" name="payType" style="margin-left:15px;width:15px" value="1">半年
                        <input type="radio" name="payType" style="margin-left:15px;width:15px" value="2">季度
                        <input type="radio" name="payType" style="margin-left:15px;width:15px" value="3">月
                    </td>
                </tr>
                <tr id="tr3" style="display:none">
                    <td class="tdc1">手动设置履行节点
                        <input type="hidden" name="count" id="count" value="2">
                        <input type="hidden" name="payDateStr" id="payDateStr" value="">
                        <input type="hidden" name="payMoneyStr" id="payMoneyStr" value="">
                    </td>
                    <td colspan="3">
                        <a style="margin-left:20px;cursor:pointer" href="javascript:addMore();">增加</a>
                        <a style="margin-left:20px;cursor:pointer" href="javascript:delMore();">删除</a>
                    </td>
                </tr>
                <tr id="tr3_1" style="display:none">
                    <td class="tdc1">
                        第1期支付时间：
                    </td>
                    <td>
                        <input type="text" name="payDate_1" id="payDate_1" readonly="readonly"
                            class="easyui-validatebox Wdate validatebox-text"
                            onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})">
                    </td>
                    <td class="tdc1">
                        第1期支付金额：
                    </td>
                    <td>
                        <input type="text" id="payMoney_1" precision="2"
                            class="easyui-numberbox numberbox-f validatebox-text" numberboxname="payMoney_1"><input
                            type="hidden" name="payMoney_1" value="">
                    </td>
                </tr>
                <tr id="tr3_2" style="display:none">
                    <td class="tdc1">
                        第2期支付时间：
                    </td>
                    <td>
                        <input type="text" name="payDate_2" id="payDate_2" readonly="readonly"
                            class="easyui-validatebox Wdate validatebox-text"
                            onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})">
                    </td>
                    <td class="tdc1">
                        第2期支付金额：
                    </td>
                    <td>
                        <input type="text" id="payMoney_2" precision="2"
                            class="easyui-numberbox numberbox-f validatebox-text" numberboxname="payMoney_2"><input
                            type="hidden" name="payMoney_2" value="">
                    </td>
                </tr>
            </tbody>
        </table>
        <div style="margin-left:10px;">
            <input type="hidden" name="objectId" id="objectId" value="1761742251128">
            <div id="easyContainer"><input type="file" multiple="" class="fileInput" style="display:none;"><a
                    class="formBtn" id="btu_" style="color:#8C8686;" href="javascript:void(0);">上传</a>
                <div class="flist" style="margin-top: 0px;"></div>
            </div>
        </div>
    </form>

    <br>
    <div id="tools" class="datagrid-toolbar">
        <a onclick="javascript:$.messager.alert('提示','请先保存后再录入印章明细');" contextmenu="true:add();"
            class="easyui-linkbutton l-btn l-btn-plain" iconcls="icon-add" plain="true" id=""><span
                class="l-btn-left"><span class="l-btn-text icon-add l-btn-icon-left">新增印章明细</span></span></a>
    </div>
    <div class="panel datagrid" style="width: auto;">
        <div class="datagrid-wrap panel-body panel-body-noheader" title="" style="width: 739px; height: auto;">
            <div class="datagrid-view" style="width: 739px; height: 25px;">
                <style type="text/css">
                    div.datagrid-cell-c1-deptNames {
                        width: 192px;
                    }

                    div.datagrid-cell-c1-dicNames {
                        width: 142px;
                    }

                    div.datagrid-cell-c1-reasons {
                        width: 292px;
                    }
                </style>
                <div class="datagrid-view1" style="width: 41px;">
                    <div class="datagrid-header" style="width: 41px; height: 24px;">
                        <div class="datagrid-header-inner" style="display: block;">
                            <table class="datagrid-htable" border="0" cellspacing="0" cellpadding="0"
                                style="height: 25px;">
                                <tbody>
                                    <tr class="datagrid-header-row">
                                        <td rowspan="0">
                                            <div class="datagrid-header-rownumber"></div>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                    <div class="datagrid-body" style="width: 41px; height: 0px;">
                        <div class="datagrid-body-inner">
                            <table class="datagrid-btable" cellspacing="0" cellpadding="0" border="0"
                                style="table-layout: auto;">
                                <tbody></tbody>
                            </table>
                        </div>
                    </div>
                    <div class="datagrid-footer" style="width: 41px;">
                        <div class="datagrid-footer-inner" style="display: none;"></div>
                    </div>
                </div>
                <div class="datagrid-view2" style="width: 698px;">
                    <div class="datagrid-header" style="width: 698px; height: 24px;">
                        <div class="datagrid-header-inner" style="display: block;">
                            <table class="datagrid-htable" border="0" cellspacing="0" cellpadding="0"
                                style="height: 25px;">
                                <tbody>
                                    <tr class="datagrid-header-row">
                                        <td field="id">
                                            <div class="datagrid-header-check"><input type="checkbox"></div>
                                        </td>
                                        <td field="deptNames">
                                            <div class="datagrid-cell" style="width: 191px;"><span>印章所属部门</span><span
                                                    class="datagrid-sort-icon">&nbsp;</span></div>
                                        </td>
                                        <td field="dicNames">
                                            <div class="datagrid-cell" style="width: 141px;"><span>印章类型</span><span
                                                    class="datagrid-sort-icon">&nbsp;</span></div>
                                        </td>
                                        <td field="reasons">
                                            <div class="datagrid-cell" style="width: 294px;"><span>申请事由</span><span
                                                    class="datagrid-sort-icon">&nbsp;</span></div>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                    <div class="datagrid-body" style="width: 698px; height: 0px;">
                        <table class="datagrid-btable" cellspacing="0" cellpadding="0" border="0"
                            style="table-layout: auto;">
                            <tbody></tbody>
                        </table>
                    </div>
                    <div class="datagrid-footer" style="width: 698px;">
                        <div class="datagrid-footer-inner" style="display: none;"></div>
                    </div>
                </div>
                <table id="list_data" style="display: none;"></table>
            </div>
            <div class="datagrid-pager pagination">
                <table cellspacing="0" cellpadding="0" border="0">
                    <tbody>
                        <tr>
                            <td><select class="pagination-page-list">
                                    <option>10</option>
                                    <option>20</option>
                                    <option>30</option>
                                    <option>40</option>
                                    <option>50</option>
                                </select></td>
                            <td>
                                <div class="pagination-btn-separator"></div>
                            </td>
                            <td><a href="javascript:void(0)" class="l-btn l-btn-plain l-btn-disabled" id=""><span
                                        class="l-btn-left"><span class="l-btn-text"><span
                                                class="l-btn-empty pagination-first">&nbsp;</span></span></span></a>
                            </td>
                            <td><a href="javascript:void(0)" class="l-btn l-btn-plain l-btn-disabled" id=""><span
                                        class="l-btn-left"><span class="l-btn-text"><span
                                                class="l-btn-empty pagination-prev">&nbsp;</span></span></span></a></td>
                            <td>
                                <div class="pagination-btn-separator"></div>
                            </td>
                            <td><span style="padding-left:6px;">第</span></td>
                            <td><input class="pagination-num" type="text" value="1" size="2"></td>
                            <td><span style="padding-right:6px;">共1页</span></td>
                            <td>
                                <div class="pagination-btn-separator"></div>
                            </td>
                            <td><a href="javascript:void(0)" class="l-btn l-btn-plain l-btn-disabled" id=""><span
                                        class="l-btn-left"><span class="l-btn-text"><span
                                                class="l-btn-empty pagination-next">&nbsp;</span></span></span></a></td>
                            <td><a href="javascript:void(0)" class="l-btn l-btn-plain l-btn-disabled" id=""><span
                                        class="l-btn-left"><span class="l-btn-text"><span
                                                class="l-btn-empty pagination-last">&nbsp;</span></span></span></a></td>
                            <td>
                                <div class="pagination-btn-separator"></div>
                            </td>
                            <td><a href="javascript:void(0)" class="l-btn l-btn-plain" id=""><span
                                        class="l-btn-left"><span class="l-btn-text"><span
                                                class="l-btn-empty pagination-load">&nbsp;</span></span></span></a></td>
                        </tr>
                    </tbody>
                </table>
                <div class="pagination-info">显示0到0,共0记录</div>
                <div style="clear:both;"></div>
            </div>
        </div>
    </div>


    <script>
        initSelect(1);//初始化选人框；1：默认根据部门

        $("#applyUserName").click(function () {
            showSelect('applyUserName,applyUserId', 'text,id', '');
        });

        $("#approvalNames").click(function () {
            showSelect('approvalNames,approvalIds', 'text,id', 'checkAny');
        });

        function showContractMsg(value) {
            if (value == "" || value == "177" || value == "181" || value == "184" || value == "187") {
                $("#htlxtable").hide();
            } else {
                $("#htlxtable").show();
            }
        }

        function changeNext(value) {
            if (value == "2") {
                $("#tr1").show();
            } else {
                $("#tr1").hide();
                $("#jdType").val("");
            }
        }

        function changeSecond(value) {
            var count = $("#count").val();
            if (value == "1") {
                $("#tr3").hide();
                for (var i = 1; i <= count; i++) {
                    $("#payDate_" + i).val("");
                    $("#payMoney_" + i).val("");
                    $("#tr3_" + i).hide();
                }
                $("#tr2").show();
            } else {
                $("#tr2").hide();
                $("input:radio[name='payType']").attr("checked", false);
                $("#payDate").val("");
                $("#tr3").show();
                for (var i = 1; i <= count; i++) {
                    $("#tr3_" + i).show();
                }
            }
        }

        ///增加一行
        function addMore() {
            var count = $("#count").val();
            var payDate = $("#payDate_" + count).val();
            var payMoney = $("#payMoney_" + count).val();

            if (payDate == null || payDate == "" || payMoney == null || payMoney == "") {
                $.messager.alert("提示", "请先填写完成第" + count + "期信息后再增加！");
            } else {
                var count_ = parseInt(count) + 1;

                var trHtml = "<tr id=\"tr3_" + count_ + "\">";
                trHtml += "<td class=\"tdc1\">第" + count_ + "期支付时间：</td>";
                trHtml += "<td><input type=\"text\" name=\"payDate_" + count_ + "\" id=\"payDate_" + count_ + "\" readonly=\"readonly\"";
                trHtml += "  class=\"easyui-validatebox Wdate\" onFocus=\"WdatePicker({dateFmt:'yyyy-MM-dd'})\"/></td>";
                trHtml += "<td class=\"tdc1\">第" + count_ + "期支付金额：</td>";
                trHtml += "<td><input type=\"text\" name=\"payMoney_" + count_ + "\" id=\"payMoney_" + count_ + "\" precision=\"2\" class=\"easyui-numberbox\"/></td>";
                trHtml += "</tr>";
                $("#htlxtable").append(trHtml);
                $("#count").val(count_);
            }
        }

        //删除一行
        function delMore() {
            var count = $("#count").val();
            if (parseInt(count) > 2) {
                $("#tr3_" + count).remove();
                var count_ = parseInt(count) - 1;
                $("#count").val(count_);
            }
        }

        function checkFormMe(form) {
            if (type == 0) {
                var contractTypeId = $("#contractTypeId").val();
                if (contractTypeId == null || contractTypeId == "") {
                    $.messager.alert("提示", "请选择合同类型！");
                    return false;
                }
                if (contractTypeId != "" && contractTypeId != "177" && contractTypeId != "181" && contractTypeId != "184" && contractTypeId != "187") {
                    var contractName = $("#contractName").val();
                    if (contractName == null || contractName == "") {
                        $.messager.alert("提示", "请填写合同名称！");
                        return false;
                    }
                    var contractMoney = $("#contractMoney").val();
                    if (contractMoney == null || contractMoney == "") {
                        $.messager.alert("提示", "请填写合同金额！");
                        return false;
                    }
                    var partyA = $("#partyA").val();
                    if (partyA == null || partyA == "") {
                        $.messager.alert("提示", "请填写甲方！");
                        return false;
                    }
                    var partyB = $("#partyB").val();
                    if (partyB == null || partyB == "") {
                        $.messager.alert("提示", "请填写乙方！");
                        return false;
                    }
                    var contractStartDate = $("#contractStartDate").val();
                    if (contractStartDate == null || contractStartDate == "") {
                        $.messager.alert("提示", "请填写合同开始时间！");
                        return false;
                    }
                    var contractEndDate = $("#contractEndDate").val();
                    if (contractEndDate == null || contractEndDate == "") {
                        $.messager.alert("提示", "请填写合同结束时间！");
                        return false;
                    }

                    var hxsxjdType = $("#hxsxjdType").val();
                    if (hxsxjdType == null || hxsxjdType == "") {
                        $.messager.alert("提示", "请选择结算方式！");
                        return false;
                    }
                    if (hxsxjdType == "2") {
                        var jdType = $("#jdType").val();
                        if (jdType == null || jdType == "") {
                            $.messager.alert("提示", "请选择阶段类型！");
                            return false;
                        }
                        if (jdType == "1") {
                            var payType = $("input[name='payType']:checked").val();
                            if (payType == null || payType == "") {
                                $.messager.alert("提示", "请选择固定合同支付方式！");
                                return false;
                            } else if (payType == 4) {//一次性支付 需要录入支付日期
                                var payDate = $("#payDate").val();
                                if (payDate == null || payDate == "") {
                                    $.messager.alert("提示", "一次性支付 需要录入支付日期！");
                                    return false;
                                }
                            }
                        } else {
                            var count = $("#count").val();
                            var payDateStr = "";
                            var payMoneyStr = "";
                            var checks = false;
                            for (var i = 1; i <= count; i++) {
                                var payDate = $("#payDate_" + i).val();
                                var payMoney = $("#payMoney_" + i).val();
                                if (payDate == null || payDate == "" || payMoney == null || payMoney == "") {
                                    checks = true;
                                    break;
                                }
                                payDateStr += payDate + ";";
                                payMoneyStr += payMoney + ";";
                            }
                            if (checks) {
                                $.messager.alert("提示", "请填写完整支付信息！");
                                payDateStr = "";
                                payMoneyStr = "";
                                $("#payDateStr").val(payDateStr);
                                $("#payMoneyStr").val(payMoneyStr);
                                return false;
                            } else {
                                $("#payDateStr").val(payDateStr);
                                $("#payMoneyStr").val(payMoneyStr);
                            }
                        }
                    }
                }
            }
            return $('#my-form').form('validate');
        }

        //获取合同类型下拉数据
        function showcontract(dicId) {
            $.ajax({
                type: "POST",
                url: contextPath + "manager/dictionary/175/list",
                data: null,
                dataType: "json",
                success: function (data) {
                    var shtml = "<option value=''>==请选择==</option>";
                    if (data) {
                        for (var i = 0; i < data.length; i++) {
                            if (data[i].id == dicId) {
                                shtml += "<option value='" + data[i].id + "' selected='selected'>" + data[i].name + "</option>";
                            } else {
                                shtml += "<option value='" + data[i].id + "'>" + data[i].name + "</option>";
                            }
                        }
                        $("#contractTypeId").html(shtml);
                    } else {
                        $("#contractTypeId").html(shtml);
                    }
                }
            });
        }


        var type = $.getUrlParam("type");
        if (type == 1) {
            $(".htlxTr").hide();
            $("#yuji").show();
        } else {
            $(".htlxTr").show();
            showcontract("-1");
            $("#yuji").hide();
        }


        $("#type").val(type);

        var p_id = $.getUrlParam("id");

        var objectId = new Date().getTime();
        if (p_id != null) {
            objectId = p_id;
        }
        $("#objectId").val(objectId);


        var BaseModel = Backbone.Model.extend({ urlRoot: contextPath + 'manager/borrowSeal' });
        var baseModel;

        if (p_id == null) {
            baseModel = new BaseModel();
        } else {
            baseModel = new BaseModel({ id: p_id, i: new Date().getTime() });
        }
        var baseView = new BaseView({ el: $("#my-form"), model: baseModel });
        if (p_id != null) {
            baseView.doLoad(loadMe);
        }

        function loadMe(model, response, options) {

        }


        //附件
        $('#easyContainer').easyUpload({
            fileTypes: 'all',//all,image,file
            selectText: "上传",//上传按钮文案
            multi: true,//是否允许多文件上传  
            maxNum: 20,//文件上传最大个数
            maxNote: '最多可以上传20个文件，已超出最大上传个数，无法上传！',
            showType: "flist",//展示方。flist,imglist
            fileNote: '文件格式错误，只能上传以下格式',//文件上传说明
            url: contextPath + 'affix',//上传文件地址
            ajaxType: 'POST',//POST,GET
            fileName: 'file',//文件配置参数
            timeout: 300000,//请求超时时间
            formParam: { "objectId": objectId, "objectType": 1 },
        });

        function success(model, response, options) {
            var data = model.get("handleMsg");
            $.messager.alert('提示', model.get("handleMsg").message, 'info', function (rt) {
                if (data.status == 1) {
                    //图层解锁
                    //$("#myForm").unblock();
                    var subtitle = encodeURI(encodeURI($.getUrlParam("subtitle")));
                    window.parent.frames["" + $.getUrlParam("_pfrid")].location.reload();
                    window.location.href = contextPath + "system/qdzxapproval/approval/borrowseal_edit.html?type=" + type + "&processid=" + model.get("id") + "&_pfrid=" + $.getUrlParam("_pfrid") + "&_frid=" + $.getUrlParam("_frid") + "&subtitle=" + subtitle;
                } else {
                    $("#errorMsg").html(data.message);
                    //图层解锁
                    //$("#myForm").unblock();
                }
            });
        }

        $('#list_data').datagrid({
            url: contextPath + "manager/borrowSealDetails?i=" + new Date().getTime(),
            fitColumns: true,
            singleSelect: false,
            rownumbers: true,
            pagination: true,
            sortName: 'id',
            sortOrder: 'desc',
            method: 'POST',
            onRowContextMenu: onRowContextMenu,//右键菜单
            queryParams: { "bid": 0 },
            columns: [[
                { field: 'id', checkbox: true },
                { field: 'deptNames', title: '印章所属部门', width: 200 },
                { field: 'dicNames', title: '印章类型', width: 150 },
                { field: 'reasons', title: '申请事由', width: 300 },
            ]]
        });

    </script>
    <div class="panel window" style="display: none; width: 450px; left: 433px; top: 25px;">
        <div class="panel-header panel-header-noborder window-header" style="width: 450px;">
            <div class="panel-title panel-with-icon">根据部门选择</div>
            <div class="panel-icon icon-manager"></div>
            <div class="panel-tool"><a class="panel-tool-collapse" href="javascript:void(0)"></a><a
                    class="panel-tool-close" href="javascript:void(0)"></a></div>
        </div>
        <div id="selectMan" class="easyui-window panel-body panel-body-noborder window-body" title=""
            data-options="closed:true,modal:true,iconCls:'icon-manager',minimizable:false,maximizable:false"
            style="z-index: 301; width: 450px; height: 625px;">
            <div id="selectManHead" class="datagrid-toolbar"><a class="easyui-linkbutton l-btn l-btn-plain"
                    iconcls="icon-ok" plain="true" onclick="checkSelectMan();" id=""><span class="l-btn-left"><span
                            class="l-btn-text icon-ok l-btn-icon-left">选择</span></span></a><a
                    class="easyui-linkbutton l-btn l-btn-plain" iconcls="icon-reload" plain="true"
                    onclick="reload_data();" id=""><span class="l-btn-left"><span
                            class="l-btn-text icon-reload l-btn-icon-left">刷新</span></span></a><a
                    class="easyui-linkbutton l-btn l-btn-plain" iconcls="icon-close" plain="true"
                    onclick="closeSelectMan();" id=""><span class="l-btn-left"><span
                            class="l-btn-text icon-close l-btn-icon-left">关闭</span></span></a></div>
            <div id="menu_tree" class="easyui-tree tree tree-lines" style="margin-top:35px;z-index: 300;"
                data-options="animate:true,lines:true,checkbox:true"></div>
        </div>
    </div>
    <div class="window-shadow" style="display: none; left: 433px; top: 25px;"></div>
    <div class="window-mask" style="width: 761px; height: 703px; display: none;"></div>
    <div id="loading1"
        style="position: absolute; left: 0px; top: 0px; width: 100%; height: 703px; background: rgb(232, 232, 232); opacity: 0.5; z-index: 10000; display: none;">
    </div>
    <div id="loading2" class="panel-loading"
        style="position: fixed; top: 38%; left: 41%; border: 2px solid rgb(149, 184, 231); width: 160px; font-size: 14px; z-index: 10001; background: url(&quot;/system/jquery/themes/themes1/images/loading-1.gif&quot;) 10px 8px no-repeat rgb(255, 255, 255); display: none;">
        正在处理，请稍等...</div>
</body>